<?php


/*
|--------------------------------------------------------------------------
| API AdminRepository Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::any('payNotify',  'WeChatController@paymentNotify');//微信支付结果通知
Route::any('refundNotify',  'WeChatController@refundNotify');//微信退款结果通知

Route::group(['middleware'=>'memJWT'],function (){
    Route::post('session','WeChatController@getSession');//获取session
    Route::post('mobile','WeChatController@getMobile');//获取手机号
    Route::post('prepay','WeChatController@prepay');//支付sdk
});